class TaggedBuilder < ActionView::Helpers::FormBuilder
  
  #<p>
  #<label for="client_first_name">First Name</label>
  #<%= form.text_area 'first_name' %>
  #<p>
  
  def self.create_tagged_field(method_name)
    define_method(method_name) do |label, *args|
      @template.content_tag("p",
        @template.content_tag("label", label.to_s.humanize + ":",
          :for => "#{@object_name}_#{label}") + "<br/>" +
          super +
          "<br/>")          
    end
  end
  
  field_helpers.each do |name|
    create_tagged_field(name)
  end
end